-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat](cloud) S3 storage vault support property use_path_style
#43060
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
clang-tidy review says "All clean, LGTM! 👍" |
@@ -334,6 +334,11 @@ public static Cloud.ObjectStoreInfoPB.Builder getObjStoreInfoPB(Map<String, Stri | |||
// S3 Provider properties should be case insensitive. | |||
builder.setProvider(Provider.valueOf(properties.get(S3Properties.PROVIDER).toUpperCase())); | |||
} | |||
|
|||
if (properties.containsKey(PropertyConverter.USE_PATH_STYLE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it be modified by alter vault
stmt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it be modified by
alter vault
stmt?
done
2046a26
to
6d7486e
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
6d7486e
to
ac77d1b
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
String value = properties.get(PropertyConverter.USE_PATH_STYLE); | ||
Preconditions.checkArgument(!Strings.isNullOrEmpty(value), "use_path_style cannot be empty"); | ||
Preconditions.checkArgument(value.equalsIgnoreCase("true") | ||
|| value.equalsIgnoreCase("false"), "Invalid use_path_style value: %s", value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Invalid use_path_style value: %s, only 'true' or 'false' is acceptable"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Invalid use_path_style value: %s, only 'true' or 'false' is acceptable"
resolved
if (properties.get(PropertyConverter.USE_PATH_STYLE).equalsIgnoreCase("true")) { | ||
builder.setUsePathStyle(true); | ||
} else { | ||
builder.setUsePathStyle(false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (properties.get(PropertyConverter.USE_PATH_STYLE).equalsIgnoreCase("true")) { | |
builder.setUsePathStyle(true); | |
} else { | |
builder.setUsePathStyle(false); | |
} | |
builder.setUsePathStyle(value.equalsIgnoreCase("true")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe alter set use_path_style
from true to false
ac77d1b
to
f86ef7b
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
f86ef7b
to
1ff0dd6
Compare
run buildall |
PR approved by at least one committer and no changes requested. |
TeamCity be ut coverage result: |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
``` CREATE STORAGE VAULT IF NOT EXISTS demo_vault PROPERTIES ( "type"="S3", ... "use_path_style" = "true" ); ```
c175d5b
to
b5f9d28
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
run p0 |
run cloud_p0 |
run p0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…che#43060) example ``` CREATE STORAGE VAULT IF NOT EXISTS demo_vault PROPERTIES ( "type"="S3", ... "use_path_style" = "true" ); ```
) (#43343) example ``` CREATE STORAGE VAULT IF NOT EXISTS demo_vault PROPERTIES ( "type"="S3", ... "use_path_style" = "true" ); ```
example
doc apache/doris-website#1344